package com.jrh.biz.product.ref;

import java.util.List;

import com.jrh.domain.common.Page;
import com.jrh.domain.entity.Product;
import com.jrh.domain.entity.ProductRef;

public interface ProductRefService {

    public static final int PRODUCT_GROUP_PAGE_SIZE = 10;

    public Page<ProductRef> getProductAdPage(Long brandId, Integer start, Integer pageSize);

    public Page<ProductRef> getProductGroupPage(Long brandId, Integer start, Integer pageSize);

    public void deleteProductAdById(Long adId);

    public void deleteProductGroupById(Long groupId);

    public List<ProductRef> listSameGroupProduct(Long productId);

    public ProductRef getProductAd(Long productId);

    public void updateProductRef(Long refId, String refType, String[] productIds);

    public void createProductAd(String name, String imageUrl, Long brandId);

    public void createProductGroup(String name, String desc, Long brandId);
}
